package com.jcfk.eam.api;

import com.jcfk.common.web.domain.RetResult;
import com.jcfk.eam.domain.dto.mould.MdmMaterialDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name = "mdm", contextId = "MdmServiceFegin", url = "${openfeign.mdm-service-url:}")
public interface MdmServiceFegin {
    // 获取详情
    @GetMapping(value = "/mdmmaterial/get/code/{id}", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    RetResult<MdmMaterialDTO> getMdmmaterial(@PathVariable String id);
}
